package com.yike.user.vo;

import com.yike.common.api.Update;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 轮播图表
 *
 * @author Sakura
 * @since 2024-09-12
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "轮播图信息")
public class BannerVo implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotNull(message = "id，修改必传", groups = {Update.class})
    private Long id;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("图片链接")
    @NotBlank(message = "图片链接不能为空")
    private String imgUrl;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("启用状态：1启用 0未启用")
    private Boolean enable;

}
